from django.db import models


class SpipForum(models.Model):
    id_forum = models.IntegerField(primary_key=True)
    id_parent = models.IntegerField()
    id_thread = models.IntegerField()
    id_rubrique = models.IntegerField()
    id_article = models.IntegerField()
    id_breve = models.IntegerField()
    date_heure = models.DateTimeField()
    titre = models.TextField()
    texte = models.TextField()
    auteur = models.TextField()
    email_auteur = models.TextField()
    nom_site = models.TextField()
    url_site = models.TextField()
    statut = models.CharField(max_length=24)
    idx = models.CharField(max_length=9)
    ip = models.CharField(max_length=48, blank=True)
    maj = models.DateTimeField()
    id_auteur = models.IntegerField()
    id_message = models.IntegerField()
    id_syndic = models.IntegerField()
    class Meta:
        db_table = u'spip_forum'
